#include("/template/common/layout/_page_layout.html")
#@layout()

#define css()
<style>

</style>
#end

#define js()
<script type="text/javascript" src="#(RESOURCE_HOST)/static/js/echarts.min.js"></script>
<script>
    layui.use('upload', function () {
        var upload = layui.upload;

        //执行实例
        var uploadInst = upload.render({
            elem: '#upLicenses' //绑定元素
            , accept: 'file'
            , acceptMime: 'text/plain'
            , exts: 'lic',
            size: '1'
            , url: '#(ctxPath)/uploadLicenses' //上传接口
            , done: function (res) {
                //上传完毕回调
                layer.msg(res.msg);
                setTimeout(function () {
                    top.window.location.href = "/";
                }, 2000);
            }
            , error: function () {
                //请求异常回调
                layer.msg("请求异常！");
            }
        });

    });
</script>
#end

#define content()
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md6">
            <div class="layui-card">
                <div class="layui-card-header">系统信息</div>
                <div class="layui-card-body layui-text">
                    <table class="layui-table">
                        <colgroup>
                            <col width="18%">
                            <col width="32%">
                        </colgroup>
                        <tbody>
                        <tr>
                            <td>当前版本</td>
                            <td>#(versionInfo.version)</td>
                        </tr>
                        <tr>
                            <td>容器</td>
                            <td>#(versionInfo.containerVersion)</td>
                        </tr>
                        <tr>
                            <td>数据库</td>
                            <td>#(versionInfo.databaseVersion)</td>
                        </tr>
                        <tr>
                            <td>缓存</td>
                            <td>#(versionInfo.redisVersion)</td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>

    </div>

</div>

#end
